// required package imports
import 'dart:async';
import 'package:floor/floor.dart';
import 'package:flutter_getx/app/data/db/dao/group_dao.dart';
import 'package:flutter_getx/app/data/db/dao/message_dao.dart';
import 'package:flutter_getx/app/data/db/dao/user_dao.dart';
import 'package:flutter_getx/app/data/db/entity/message.dart';
import 'package:flutter_getx/app/data/db/entity/user_friend.dart';
import 'dao/group_member_dao.dart';
import 'dao/user_friend_dao.dart';
import 'entity/group.dart';
import 'entity/group_member.dart';
import 'entity/user.dart';

import 'package:sqflite/sqflite.dart' as sqflite;


part 'database.g.dart'; // the generated code will be there

@Database(version: 1, entities: [GroupEntity, GroupMemberEntity, UserEntity, UserFriendEntity, MessageEntity])
abstract class AppDatabase extends FloorDatabase {
  GroupDao get groupDao;

  GroupMemberDao get groupMemberDao;

  UserDao get userDao;

  UserFriendDao get userFriendDao;

  MessageDao get messageDao;
}
